package com.drugstore.drugstore.domain;


import javax.xml.crypto.Data;
import java.util.Date;

/**
 * 对象 inventory
 * 
 * @author 
 * @date 2025-05-08
 */
public class Inventory 
{

    /** $column.columnComment */
    private Long id;

    /** 门店ID */
    private Long storeId;

    /** 药品ID */
    private Long medicineId;

    /** 当前库存数量 */
    private Long quantity;

    /** 库存预警值 */
    private Long warningQty;

    private Date updateTime;


    public Inventory() {
    }

    public Inventory(Long id, Long storeId, Long medicineId, Long quantity, Long warningQty, Date updateTime) {
        this.id = id;
        this.storeId = storeId;
        this.medicineId = medicineId;
        this.quantity = quantity;
        this.warningQty = warningQty;
        this.updateTime = updateTime;
    }

    /**
     * 获取
     * @return id
     */
    public Long getId() {
        return id;
    }

    /**
     * 设置
     * @param id
     */
    public void setId(Long id) {
        this.id = id;
    }

    /**
     * 获取
     * @return storeId
     */
    public Long getStoreId() {
        return storeId;
    }

    /**
     * 设置
     * @param storeId
     */
    public void setStoreId(Long storeId) {
        this.storeId = storeId;
    }

    /**
     * 获取
     * @return medicineId
     */
    public Long getMedicineId() {
        return medicineId;
    }

    /**
     * 设置
     * @param medicineId
     */
    public void setMedicineId(Long medicineId) {
        this.medicineId = medicineId;
    }

    /**
     * 获取
     * @return quantity
     */
    public Long getQuantity() {
        return quantity;
    }

    /**
     * 设置
     * @param quantity
     */
    public void setQuantity(Long quantity) {
        this.quantity = quantity;
    }

    /**
     * 获取
     * @return warningQty
     */
    public Long getWarningQty() {
        return warningQty;
    }

    /**
     * 设置
     * @param warningQty
     */
    public void setWarningQty(Long warningQty) {
        this.warningQty = warningQty;
    }

    /**
     * 获取
     * @return updateTime
     */
    public Date getUpdateTime() {
        return updateTime;
    }

    /**
     * 设置
     * @param updateTime
     */
    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public String toString() {
        return "Inventory{id = " + id + ", storeId = " + storeId + ", medicineId = " + medicineId + ", quantity = " + quantity + ", warningQty = " + warningQty + ", updateTime = " + updateTime + "}";
    }
}
